-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows 10X and Two-pane view support #3768
Conversation
Thanks COM8 for opening a Pull Request! The reviewers will test the PR and highlight if there is any conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌 |
What should I do about the documentation over at MicrosoftDocs/WindowsCommunityToolkitDocs#304? |
@COM8 yeah, we haven't updated the documentation with the rename yet. We'll be doing that in the next couple of weeks as we prep for release. I can let you know when that happens and we can rebase that PR of yours after? |
Sounds great. |
@COM8 looks like there's a build issue?
|
Fixed. Sorry forgot to check the CI run since it took soo long the first time :D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm glad this got in here. I had a hard time reviewing the code due to methods getting moved around what appears to be randomly.
I'm concerned that this is slated for 7.1. It contains a lot of breaking changes
Microsoft.Toolkit.Uwp.UI.Controls.Layout/ListDetailsView/ListDetailsView.Properties.cs
Outdated
Show resolved
Hide resolved
/// </summary> | ||
protected override void OnApplyTemplate() | ||
/// <param name="animate">False to skip animations.</param> | ||
private void SetVisualState(bool animate) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Methods have been moved around making review very hard. private methods should be below public/protected methods
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the method order.
Microsoft.Toolkit.Uwp.UI.Controls.Layout/ListDetailsView/ListDetailsView.xaml
Outdated
Show resolved
Hide resolved
Microsoft.Toolkit.Uwp.UI.Controls.Layout/ListDetailsView/ListDetailsView.Properties.cs
Outdated
Show resolved
Hide resolved
This PR has been marked as "needs attention 👋" and awaiting a response from the team. |
Sorry for the moved arround methods. |
@COM8 if you'd like to get this in sooner, think we can do things without changing property names or types? Or is that pretty pivotal to the other updates you've made? We're not too sure when our next major version is going to be. Otherwise, we may have another spot in the next month or so we could put this to get some more folks to test out the changes until such time we can swap them out. |
Sure, I can change the name of for example |
@COM8 yeah, if we want to move forward with the PR though, we wouldn't want to make breaking changes for our upcoming minor release. I think it's something we can still clarify with the documentation comments on the properties. Did you want to keep them the same so we can move forward? Couple of conflicts to resolve as well? |
Ok, I will work on it in the next to weeks so we can move on :) |
@michael-hawker Done. |
Thanks. Done: MicrosoftDocs/WindowsCommunityToolkitDocs#559 |
Thanks @COM8 as long as we're back to no breaking changes, we can remove that label and get this in for 7.1 this week I hope. |
Hi @COM8 , it appears you're trying to merge this code in from the Please be aware of the rules & stipulations of submitting code into the Toolkit repo: |
@michael-hawker should I create a new PR from my |
@@ -162,7 +212,7 @@ public partial class ListDetailsView | |||
nameof(CompactModeThresholdWidth), | |||
typeof(double), | |||
typeof(ListDetailsView), | |||
new PropertyMetadata(720d, OnCompactModeThresholdWidthChanged)); | |||
new PropertyMetadata(640d)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did we change the default value here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed this value, so we have a better two too one ratio between the CompactModeThresholdWidth
and the ListPaneWidth
.
Yes, can you submit a new PR from your |
Going to close this one, as we'll wait to do final review on the new PR opened. |
Fixes #3173
PR Type
What kind of change does this PR introduce?
What is the current behavior?
The ListDetailsView does not take advantage of multiple screens on Windows 10X devices.
What is the new behavior?
The new and refactored ListDetailsView control is aware of multiple screens when used on Windows 10X devices.
We archive this by replacing the current
grid
-based layout with the new Two-pane view based layout.Additional changes
DetailsPaneBackground
,DetailsContentTemplateSelector
,ListPaneNoItemsContent
,ListPaneNoItemsContentTemplate
andListPaneItemTemplateSelector
.I added a new NuGet dependency: Microsoft.UI.Xaml toMicrosoft.Toolkit.Uwp.UI.Controls.Layout
, so I would be able to use the TwoPaneView class regardlessof the current Windows 10 version.Renamed theListCommandBar
property toListPaneCommandBar
. For more consitency with property names.Renamed theDetailsCommandBar
property toDetailsPaneCommandBar
. For more consitency with property names.PR Checklist
Please check if your PR fulfills the following requirements:
Other information
Old behavior
New behavior